package ar.edu.unsam.algo3.plantasvszombies.wicket;

import ar.edu.unsam.algo3.plantasvszombies.dominio.JardinZen;
import ar.edu.unsam.algo3.plantasvszombies.dominio.Mejora;
import ar.edu.unsam.algo3.plantasvszombies.dominio.Zombie;
import ar.edu.unsam.algo3.plantasvszombies.homes.HomeMejoras;
import ar.edu.unsam.algo3.plantasvszombies.homes.HomePlantas;
import ar.edu.unsam.algo3.plantasvszombies.homes.HomeZombies;
import ar.edu.unsam.algo3.plantasvszombies.wicket.HomePage;
import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.settings.IDebugSettings;
import org.apache.wicket.settings.IMarkupSettings;
import org.apache.wicket.settings.IResourceSettings;
import org.uqbar.commons.utils.ApplicationContext;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see ar.edu.unsam.algo3.plantasvszombies.wicket.Start#main(String[])
 */
@SuppressWarnings("all")
public class WicketApplication extends WebApplication {
  public Class<? extends Page> getHomePage() {
    return HomePage.class;
  }
  
  public void init() {
    ApplicationContext _instance = ApplicationContext.getInstance();
    HomeZombies _homeZombies = new HomeZombies();
    _instance.<HomeZombies>configureSingleton(Zombie.class, _homeZombies);
    ApplicationContext _instance_1 = ApplicationContext.getInstance();
    HomePlantas _homePlantas = new HomePlantas();
    _instance_1.<HomePlantas>configureSingleton(JardinZen.class, _homePlantas);
    ApplicationContext _instance_2 = ApplicationContext.getInstance();
    HomeMejoras _homeMejoras = new HomeMejoras();
    _instance_2.<HomeMejoras>configureSingleton(Mejora.class, _homeMejoras);
    IResourceSettings _resourceSettings = this.getResourceSettings();
    _resourceSettings.addResourceFolder("src/main/pages/ar/edu/unsam/algo3/plantasvszombies/wicket");
    IDebugSettings _debugSettings = this.getDebugSettings();
    _debugSettings.setAjaxDebugModeEnabled(false);
    IMarkupSettings _markupSettings = this.getMarkupSettings();
    _markupSettings.setStripWicketTags(true);
    super.init();
  }
}
